﻿
#region 程序集引用区
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using SubSonic.DataProviders;
using SubSonic.Extensions;
using System.Linq.Expressions;
using SubSonic.Schema;
using System.Collections;
using SubSonic;
using SubSonic.Repository;
using System.ComponentModel;
using System.Data.Common;
using SubSonic.Query;
using System.Xml;
using System.Xml.Serialization;
using System.Reflection;
#endregion

namespace WebeTerm.Model{
    
    /// <summary>
    /// 文 件 名: ConfigurationInfo.cs
    /// CLR版本 : v2.0.50727
    /// 作   者 : lijun.hu
    /// 版    权: Copyright @2011 lijun.hu(FORCEN HU) 
    /// 电子邮箱：lijun.hu@shinsoft.net
    /// 说    明: eTerm配置信息
    /// 生成日期: 2014年12月5日
    /// </summary>
    [Serializable]
    [Description(@"eTerm配置信息")]
    public partial class ConfigurationInfo:BaseModel, IModel{
        
        #region 构造函数
        /// <summary>
        /// eTerm配置信息
        /// </summary>
        public ConfigurationInfo() : base(new ConfigurationInfoTable(null)) { 
            
        }               
        #endregion
        
        #region ConfigurationInfo属性列表
        System.Guid m_Id;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.Guid  Id
        {
            get { return m_Id; }
            set
            {
                //if(m_Id!=value)
                {
                    m_Id=value;
                    UpdateColumn(@"Id");
                }
            }
        }
        
        System.Guid m_CompanyId;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.Guid  CompanyId
        {
            get { return m_CompanyId; }
            set
            {
                //if(m_CompanyId!=value)
                {
                    m_CompanyId=value;
                    UpdateColumn(@"CompanyId");
                }
            }
        }
        
        System.Guid m_EmployeeId;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.Guid  EmployeeId
        {
            get { return m_EmployeeId; }
            set
            {
                //if(m_EmployeeId!=value)
                {
                    m_EmployeeId=value;
                    UpdateColumn(@"EmployeeId");
                }
            }
        }
        
        System.Int32 m_ConfigType;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.Int32  ConfigType
        {
            get { return m_ConfigType; }
            set
            {
                //if(m_ConfigType!=value)
                {
                    m_ConfigType=value;
                    UpdateColumn(@"ConfigType");
                }
            }
        }
        
        System.String m_ConfigAddress;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.String  ConfigAddress
        {
            get { return m_ConfigAddress; }
            set
            {
                //if(m_ConfigAddress!=value)
                {
                    m_ConfigAddress=value;
                    UpdateColumn(@"ConfigAddress");
                }
            }
        }
        
        System.Int32 m_ConfigPort;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.Int32  ConfigPort
        {
            get { return m_ConfigPort; }
            set
            {
                //if(m_ConfigPort!=value)
                {
                    m_ConfigPort=value;
                    UpdateColumn(@"ConfigPort");
                }
            }
        }
        
        System.String m_ConfigUserName;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.String  ConfigUserName
        {
            get { return m_ConfigUserName; }
            set
            {
                //if(m_ConfigUserName!=value)
                {
                    m_ConfigUserName=value;
                    UpdateColumn(@"ConfigUserName");
                }
            }
        }
        
        System.String m_ConfigUserPassword;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.String  ConfigUserPassword
        {
            get { return m_ConfigUserPassword; }
            set
            {
                //if(m_ConfigUserPassword!=value)
                {
                    m_ConfigUserPassword=value;
                    UpdateColumn(@"ConfigUserPassword");
                }
            }
        }
        
        System.Int32 m_ConfigRid;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.Int32  ConfigRID
        {
            get { return m_ConfigRid; }
            set
            {
                //if(m_ConfigRid!=value)
                {
                    m_ConfigRid=value;
                    UpdateColumn(@"ConfigRid");
                }
            }
        }
        
        System.Int32 m_ConfigSid;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.Int32  ConfigSID
        {
            get { return m_ConfigSid; }
            set
            {
                //if(m_ConfigSid!=value)
                {
                    m_ConfigSid=value;
                    UpdateColumn(@"ConfigSid");
                }
            }
        }
        
        System.String m_SiText;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.String  SiText
        {
            get { return m_SiText; }
            set
            {
                //if(m_SiText!=value)
                {
                    m_SiText=value;
                    UpdateColumn(@"SiText");
                }
            }
        }
        
        System.Int32 m_StatusId;
        /// <summary>
        /// 配置状态（有效、无效、使用中）
        ///</summary>
        [XmlAttribute()]
        [Description(@"配置状态（有效、无效、使用中）")]
        public System.Int32  StatusId
        {
            get { return m_StatusId; }
            set
            {
                //if(m_StatusId!=value)
                {
                    m_StatusId=value;
                    UpdateColumn(@"StatusId");
                }
            }
        }
        
        #endregion
        
        
        #region 关联父级
        private CompanyInfo m_FK_CONFIGUR_REFERENCE_COMPANYI;
        /// <summary>
        /// FK_CONFIGUR_REFERENCE_COMPANYI:未定义.
        /// <remarks>
        /// 外键名称：FK_CONFIGUR_REFERENCE_COMPANYI
        /// 主表名称：CompanyInfo
        /// 外键字段：Id
        /// </remarks>
        /// </summary>
        [Browsable(false)]
        [XmlIgnore()]
        public CompanyInfo FK_CONFIGUR_REFERENCE_COMPANYI{
            get{
                return m_FK_CONFIGUR_REFERENCE_COMPANYI;
            }
            set{
                m_FK_CONFIGUR_REFERENCE_COMPANYI=value;
            }
        }
        private EmployeeInfo m_FK_CONFIGUR_REFERENCE_EMPLOYEE;
        /// <summary>
        /// FK_CONFIGUR_REFERENCE_EMPLOYEE:员工信息.
        /// <remarks>
        /// 外键名称：FK_CONFIGUR_REFERENCE_EMPLOYEE
        /// 主表名称：EmployeeInfo
        /// 外键字段：Id
        /// </remarks>
        /// </summary>
        [Browsable(false)]
        [XmlIgnore()]
        public EmployeeInfo FK_CONFIGUR_REFERENCE_EMPLOYEE{
            get{
                return m_FK_CONFIGUR_REFERENCE_EMPLOYEE;
            }
            set{
                m_FK_CONFIGUR_REFERENCE_EMPLOYEE=value;
            }
        }
        #endregion
       
    }
} 



